package com.cee.service;

import com.cee.dto.ShortAnswerDTO;
import com.cee.model.ShortAnswer;

import java.util.List;

public interface ShortAnswerService {

    int saveShortAnswer(ShortAnswer shortAnswer) throws Exception;


    /**
     * 查询列表
     * @param shortAnswerDTO
     * @return
     */
    List<ShortAnswerDTO> getShortAnswerList(ShortAnswerDTO shortAnswerDTO);


    /**
     * 逻辑删除， del_date_time = now
     * @param id
     */
    void  deleteShortAnswer(Integer id);

    /**
     * 查询List
     * @param examId
     * @return
     */
    List<ShortAnswerDTO> getListByExamId(Integer examId);
}
